package com.bestescortbedsystem.entity;

import java.util.ArrayList;
import java.util.List;

public class SesHospitalinfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;

    public SesHospitalinfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andHospitalinfoidIsNull() {
            addCriterion("hospitalinfoId is null");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoidIsNotNull() {
            addCriterion("hospitalinfoId is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoidEqualTo(Long value) {
            addCriterion("hospitalinfoId =", value, "hospitalinfoid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoidNotEqualTo(Long value) {
            addCriterion("hospitalinfoId <>", value, "hospitalinfoid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoidGreaterThan(Long value) {
            addCriterion("hospitalinfoId >", value, "hospitalinfoid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoidGreaterThanOrEqualTo(Long value) {
            addCriterion("hospitalinfoId >=", value, "hospitalinfoid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoidLessThan(Long value) {
            addCriterion("hospitalinfoId <", value, "hospitalinfoid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoidLessThanOrEqualTo(Long value) {
            addCriterion("hospitalinfoId <=", value, "hospitalinfoid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoidIn(List<Long> values) {
            addCriterion("hospitalinfoId in", values, "hospitalinfoid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoidNotIn(List<Long> values) {
            addCriterion("hospitalinfoId not in", values, "hospitalinfoid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoidBetween(Long value1, Long value2) {
            addCriterion("hospitalinfoId between", value1, value2, "hospitalinfoid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoidNotBetween(Long value1, Long value2) {
            addCriterion("hospitalinfoId not between", value1, value2, "hospitalinfoid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoprovinceidIsNull() {
            addCriterion("hospitalinfoProvinceId is null");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoprovinceidIsNotNull() {
            addCriterion("hospitalinfoProvinceId is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoprovinceidEqualTo(Long value) {
            addCriterion("hospitalinfoProvinceId =", value, "hospitalinfoprovinceid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoprovinceidNotEqualTo(Long value) {
            addCriterion("hospitalinfoProvinceId <>", value, "hospitalinfoprovinceid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoprovinceidGreaterThan(Long value) {
            addCriterion("hospitalinfoProvinceId >", value, "hospitalinfoprovinceid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoprovinceidGreaterThanOrEqualTo(Long value) {
            addCriterion("hospitalinfoProvinceId >=", value, "hospitalinfoprovinceid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoprovinceidLessThan(Long value) {
            addCriterion("hospitalinfoProvinceId <", value, "hospitalinfoprovinceid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoprovinceidLessThanOrEqualTo(Long value) {
            addCriterion("hospitalinfoProvinceId <=", value, "hospitalinfoprovinceid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoprovinceidIn(List<Long> values) {
            addCriterion("hospitalinfoProvinceId in", values, "hospitalinfoprovinceid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoprovinceidNotIn(List<Long> values) {
            addCriterion("hospitalinfoProvinceId not in", values, "hospitalinfoprovinceid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoprovinceidBetween(Long value1, Long value2) {
            addCriterion("hospitalinfoProvinceId between", value1, value2, "hospitalinfoprovinceid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoprovinceidNotBetween(Long value1, Long value2) {
            addCriterion("hospitalinfoProvinceId not between", value1, value2, "hospitalinfoprovinceid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocityidIsNull() {
            addCriterion("hospitalinfoCityId is null");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocityidIsNotNull() {
            addCriterion("hospitalinfoCityId is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocityidEqualTo(Long value) {
            addCriterion("hospitalinfoCityId =", value, "hospitalinfocityid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocityidNotEqualTo(Long value) {
            addCriterion("hospitalinfoCityId <>", value, "hospitalinfocityid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocityidGreaterThan(Long value) {
            addCriterion("hospitalinfoCityId >", value, "hospitalinfocityid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocityidGreaterThanOrEqualTo(Long value) {
            addCriterion("hospitalinfoCityId >=", value, "hospitalinfocityid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocityidLessThan(Long value) {
            addCriterion("hospitalinfoCityId <", value, "hospitalinfocityid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocityidLessThanOrEqualTo(Long value) {
            addCriterion("hospitalinfoCityId <=", value, "hospitalinfocityid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocityidIn(List<Long> values) {
            addCriterion("hospitalinfoCityId in", values, "hospitalinfocityid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocityidNotIn(List<Long> values) {
            addCriterion("hospitalinfoCityId not in", values, "hospitalinfocityid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocityidBetween(Long value1, Long value2) {
            addCriterion("hospitalinfoCityId between", value1, value2, "hospitalinfocityid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocityidNotBetween(Long value1, Long value2) {
            addCriterion("hospitalinfoCityId not between", value1, value2, "hospitalinfocityid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocontyidIsNull() {
            addCriterion("hospitalinfoContyId is null");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocontyidIsNotNull() {
            addCriterion("hospitalinfoContyId is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocontyidEqualTo(Long value) {
            addCriterion("hospitalinfoContyId =", value, "hospitalinfocontyid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocontyidNotEqualTo(Long value) {
            addCriterion("hospitalinfoContyId <>", value, "hospitalinfocontyid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocontyidGreaterThan(Long value) {
            addCriterion("hospitalinfoContyId >", value, "hospitalinfocontyid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocontyidGreaterThanOrEqualTo(Long value) {
            addCriterion("hospitalinfoContyId >=", value, "hospitalinfocontyid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocontyidLessThan(Long value) {
            addCriterion("hospitalinfoContyId <", value, "hospitalinfocontyid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocontyidLessThanOrEqualTo(Long value) {
            addCriterion("hospitalinfoContyId <=", value, "hospitalinfocontyid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocontyidIn(List<Long> values) {
            addCriterion("hospitalinfoContyId in", values, "hospitalinfocontyid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocontyidNotIn(List<Long> values) {
            addCriterion("hospitalinfoContyId not in", values, "hospitalinfocontyid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocontyidBetween(Long value1, Long value2) {
            addCriterion("hospitalinfoContyId between", value1, value2, "hospitalinfocontyid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocontyidNotBetween(Long value1, Long value2) {
            addCriterion("hospitalinfoContyId not between", value1, value2, "hospitalinfocontyid");
            return (Criteria) this;
        }

        public Criteria andUseridIsNull() {
            addCriterion("userId is null");
            return (Criteria) this;
        }

        public Criteria andUseridIsNotNull() {
            addCriterion("userId is not null");
            return (Criteria) this;
        }

        public Criteria andUseridEqualTo(Long value) {
            addCriterion("userId =", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotEqualTo(Long value) {
            addCriterion("userId <>", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThan(Long value) {
            addCriterion("userId >", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThanOrEqualTo(Long value) {
            addCriterion("userId >=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThan(Long value) {
            addCriterion("userId <", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThanOrEqualTo(Long value) {
            addCriterion("userId <=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridIn(List<Long> values) {
            addCriterion("userId in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotIn(List<Long> values) {
            addCriterion("userId not in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridBetween(Long value1, Long value2) {
            addCriterion("userId between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotBetween(Long value1, Long value2) {
            addCriterion("userId not between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfonameIsNull() {
            addCriterion("hospitalinfoName is null");
            return (Criteria) this;
        }

        public Criteria andHospitalinfonameIsNotNull() {
            addCriterion("hospitalinfoName is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalinfonameEqualTo(String value) {
            addCriterion("hospitalinfoName =", value, "hospitalinfoname");
            return (Criteria) this;
        }

        public Criteria andHospitalinfonameNotEqualTo(String value) {
            addCriterion("hospitalinfoName <>", value, "hospitalinfoname");
            return (Criteria) this;
        }

        public Criteria andHospitalinfonameGreaterThan(String value) {
            addCriterion("hospitalinfoName >", value, "hospitalinfoname");
            return (Criteria) this;
        }

        public Criteria andHospitalinfonameGreaterThanOrEqualTo(String value) {
            addCriterion("hospitalinfoName >=", value, "hospitalinfoname");
            return (Criteria) this;
        }

        public Criteria andHospitalinfonameLessThan(String value) {
            addCriterion("hospitalinfoName <", value, "hospitalinfoname");
            return (Criteria) this;
        }

        public Criteria andHospitalinfonameLessThanOrEqualTo(String value) {
            addCriterion("hospitalinfoName <=", value, "hospitalinfoname");
            return (Criteria) this;
        }

        public Criteria andHospitalinfonameLike(String value) {
            addCriterion("hospitalinfoName like", value, "hospitalinfoname");
            return (Criteria) this;
        }

        public Criteria andHospitalinfonameNotLike(String value) {
            addCriterion("hospitalinfoName not like", value, "hospitalinfoname");
            return (Criteria) this;
        }

        public Criteria andHospitalinfonameIn(List<String> values) {
            addCriterion("hospitalinfoName in", values, "hospitalinfoname");
            return (Criteria) this;
        }

        public Criteria andHospitalinfonameNotIn(List<String> values) {
            addCriterion("hospitalinfoName not in", values, "hospitalinfoname");
            return (Criteria) this;
        }

        public Criteria andHospitalinfonameBetween(String value1, String value2) {
            addCriterion("hospitalinfoName between", value1, value2, "hospitalinfoname");
            return (Criteria) this;
        }

        public Criteria andHospitalinfonameNotBetween(String value1, String value2) {
            addCriterion("hospitalinfoName not between", value1, value2, "hospitalinfoname");
            return (Criteria) this;
        }

        public Criteria andHospitalinforentIsNull() {
            addCriterion("hospitalinfoRent is null");
            return (Criteria) this;
        }

        public Criteria andHospitalinforentIsNotNull() {
            addCriterion("hospitalinfoRent is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalinforentEqualTo(Float value) {
            addCriterion("hospitalinfoRent =", value, "hospitalinforent");
            return (Criteria) this;
        }

        public Criteria andHospitalinforentNotEqualTo(Float value) {
            addCriterion("hospitalinfoRent <>", value, "hospitalinforent");
            return (Criteria) this;
        }

        public Criteria andHospitalinforentGreaterThan(Float value) {
            addCriterion("hospitalinfoRent >", value, "hospitalinforent");
            return (Criteria) this;
        }

        public Criteria andHospitalinforentGreaterThanOrEqualTo(Float value) {
            addCriterion("hospitalinfoRent >=", value, "hospitalinforent");
            return (Criteria) this;
        }

        public Criteria andHospitalinforentLessThan(Float value) {
            addCriterion("hospitalinfoRent <", value, "hospitalinforent");
            return (Criteria) this;
        }

        public Criteria andHospitalinforentLessThanOrEqualTo(Float value) {
            addCriterion("hospitalinfoRent <=", value, "hospitalinforent");
            return (Criteria) this;
        }

        public Criteria andHospitalinforentIn(List<Float> values) {
            addCriterion("hospitalinfoRent in", values, "hospitalinforent");
            return (Criteria) this;
        }

        public Criteria andHospitalinforentNotIn(List<Float> values) {
            addCriterion("hospitalinfoRent not in", values, "hospitalinforent");
            return (Criteria) this;
        }

        public Criteria andHospitalinforentBetween(Float value1, Float value2) {
            addCriterion("hospitalinfoRent between", value1, value2, "hospitalinforent");
            return (Criteria) this;
        }

        public Criteria andHospitalinforentNotBetween(Float value1, Float value2) {
            addCriterion("hospitalinfoRent not between", value1, value2, "hospitalinforent");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocardnumberIsNull() {
            addCriterion("hospitalinfoCardNumber is null");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocardnumberIsNotNull() {
            addCriterion("hospitalinfoCardNumber is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocardnumberEqualTo(String value) {
            addCriterion("hospitalinfoCardNumber =", value, "hospitalinfocardnumber");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocardnumberNotEqualTo(String value) {
            addCriterion("hospitalinfoCardNumber <>", value, "hospitalinfocardnumber");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocardnumberGreaterThan(String value) {
            addCriterion("hospitalinfoCardNumber >", value, "hospitalinfocardnumber");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocardnumberGreaterThanOrEqualTo(String value) {
            addCriterion("hospitalinfoCardNumber >=", value, "hospitalinfocardnumber");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocardnumberLessThan(String value) {
            addCriterion("hospitalinfoCardNumber <", value, "hospitalinfocardnumber");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocardnumberLessThanOrEqualTo(String value) {
            addCriterion("hospitalinfoCardNumber <=", value, "hospitalinfocardnumber");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocardnumberLike(String value) {
            addCriterion("hospitalinfoCardNumber like", value, "hospitalinfocardnumber");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocardnumberNotLike(String value) {
            addCriterion("hospitalinfoCardNumber not like", value, "hospitalinfocardnumber");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocardnumberIn(List<String> values) {
            addCriterion("hospitalinfoCardNumber in", values, "hospitalinfocardnumber");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocardnumberNotIn(List<String> values) {
            addCriterion("hospitalinfoCardNumber not in", values, "hospitalinfocardnumber");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocardnumberBetween(String value1, String value2) {
            addCriterion("hospitalinfoCardNumber between", value1, value2, "hospitalinfocardnumber");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocardnumberNotBetween(String value1, String value2) {
            addCriterion("hospitalinfoCardNumber not between", value1, value2, "hospitalinfocardnumber");
            return (Criteria) this;
        }

        public Criteria andHospitalinfosharingIsNull() {
            addCriterion("hospitalinfoSharIng is null");
            return (Criteria) this;
        }

        public Criteria andHospitalinfosharingIsNotNull() {
            addCriterion("hospitalinfoSharIng is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalinfosharingEqualTo(Float value) {
            addCriterion("hospitalinfoSharIng =", value, "hospitalinfosharing");
            return (Criteria) this;
        }

        public Criteria andHospitalinfosharingNotEqualTo(Float value) {
            addCriterion("hospitalinfoSharIng <>", value, "hospitalinfosharing");
            return (Criteria) this;
        }

        public Criteria andHospitalinfosharingGreaterThan(Float value) {
            addCriterion("hospitalinfoSharIng >", value, "hospitalinfosharing");
            return (Criteria) this;
        }

        public Criteria andHospitalinfosharingGreaterThanOrEqualTo(Float value) {
            addCriterion("hospitalinfoSharIng >=", value, "hospitalinfosharing");
            return (Criteria) this;
        }

        public Criteria andHospitalinfosharingLessThan(Float value) {
            addCriterion("hospitalinfoSharIng <", value, "hospitalinfosharing");
            return (Criteria) this;
        }

        public Criteria andHospitalinfosharingLessThanOrEqualTo(Float value) {
            addCriterion("hospitalinfoSharIng <=", value, "hospitalinfosharing");
            return (Criteria) this;
        }

        public Criteria andHospitalinfosharingIn(List<Float> values) {
            addCriterion("hospitalinfoSharIng in", values, "hospitalinfosharing");
            return (Criteria) this;
        }

        public Criteria andHospitalinfosharingNotIn(List<Float> values) {
            addCriterion("hospitalinfoSharIng not in", values, "hospitalinfosharing");
            return (Criteria) this;
        }

        public Criteria andHospitalinfosharingBetween(Float value1, Float value2) {
            addCriterion("hospitalinfoSharIng between", value1, value2, "hospitalinfosharing");
            return (Criteria) this;
        }

        public Criteria andHospitalinfosharingNotBetween(Float value1, Float value2) {
            addCriterion("hospitalinfoSharIng not between", value1, value2, "hospitalinfosharing");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocreatetimeIsNull() {
            addCriterion("hospitalinfoCreateTime is null");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocreatetimeIsNotNull() {
            addCriterion("hospitalinfoCreateTime is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocreatetimeEqualTo(String value) {
            addCriterion("hospitalinfoCreateTime =", value, "hospitalinfocreatetime");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocreatetimeNotEqualTo(String value) {
            addCriterion("hospitalinfoCreateTime <>", value, "hospitalinfocreatetime");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocreatetimeGreaterThan(String value) {
            addCriterion("hospitalinfoCreateTime >", value, "hospitalinfocreatetime");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocreatetimeGreaterThanOrEqualTo(String value) {
            addCriterion("hospitalinfoCreateTime >=", value, "hospitalinfocreatetime");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocreatetimeLessThan(String value) {
            addCriterion("hospitalinfoCreateTime <", value, "hospitalinfocreatetime");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocreatetimeLessThanOrEqualTo(String value) {
            addCriterion("hospitalinfoCreateTime <=", value, "hospitalinfocreatetime");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocreatetimeLike(String value) {
            addCriterion("hospitalinfoCreateTime like", value, "hospitalinfocreatetime");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocreatetimeNotLike(String value) {
            addCriterion("hospitalinfoCreateTime not like", value, "hospitalinfocreatetime");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocreatetimeIn(List<String> values) {
            addCriterion("hospitalinfoCreateTime in", values, "hospitalinfocreatetime");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocreatetimeNotIn(List<String> values) {
            addCriterion("hospitalinfoCreateTime not in", values, "hospitalinfocreatetime");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocreatetimeBetween(String value1, String value2) {
            addCriterion("hospitalinfoCreateTime between", value1, value2, "hospitalinfocreatetime");
            return (Criteria) this;
        }

        public Criteria andHospitalinfocreatetimeNotBetween(String value1, String value2) {
            addCriterion("hospitalinfoCreateTime not between", value1, value2, "hospitalinfocreatetime");
            return (Criteria) this;
        }

        public Criteria andUsershareholderidIsNull() {
            addCriterion("userShareholderId is null");
            return (Criteria) this;
        }

        public Criteria andUsershareholderidIsNotNull() {
            addCriterion("userShareholderId is not null");
            return (Criteria) this;
        }

        public Criteria andUsershareholderidEqualTo(Long value) {
            addCriterion("userShareholderId =", value, "usershareholderid");
            return (Criteria) this;
        }

        public Criteria andUsershareholderidNotEqualTo(Long value) {
            addCriterion("userShareholderId <>", value, "usershareholderid");
            return (Criteria) this;
        }

        public Criteria andUsershareholderidGreaterThan(Long value) {
            addCriterion("userShareholderId >", value, "usershareholderid");
            return (Criteria) this;
        }

        public Criteria andUsershareholderidGreaterThanOrEqualTo(Long value) {
            addCriterion("userShareholderId >=", value, "usershareholderid");
            return (Criteria) this;
        }

        public Criteria andUsershareholderidLessThan(Long value) {
            addCriterion("userShareholderId <", value, "usershareholderid");
            return (Criteria) this;
        }

        public Criteria andUsershareholderidLessThanOrEqualTo(Long value) {
            addCriterion("userShareholderId <=", value, "usershareholderid");
            return (Criteria) this;
        }

        public Criteria andUsershareholderidIn(List<Long> values) {
            addCriterion("userShareholderId in", values, "usershareholderid");
            return (Criteria) this;
        }

        public Criteria andUsershareholderidNotIn(List<Long> values) {
            addCriterion("userShareholderId not in", values, "usershareholderid");
            return (Criteria) this;
        }

        public Criteria andUsershareholderidBetween(Long value1, Long value2) {
            addCriterion("userShareholderId between", value1, value2, "usershareholderid");
            return (Criteria) this;
        }

        public Criteria andUsershareholderidNotBetween(Long value1, Long value2) {
            addCriterion("userShareholderId not between", value1, value2, "usershareholderid");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid1IsNull() {
            addCriterion("userDistributorsId1 is null");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid1IsNotNull() {
            addCriterion("userDistributorsId1 is not null");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid1EqualTo(Long value) {
            addCriterion("userDistributorsId1 =", value, "userdistributorsid1");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid1NotEqualTo(Long value) {
            addCriterion("userDistributorsId1 <>", value, "userdistributorsid1");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid1GreaterThan(Long value) {
            addCriterion("userDistributorsId1 >", value, "userdistributorsid1");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid1GreaterThanOrEqualTo(Long value) {
            addCriterion("userDistributorsId1 >=", value, "userdistributorsid1");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid1LessThan(Long value) {
            addCriterion("userDistributorsId1 <", value, "userdistributorsid1");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid1LessThanOrEqualTo(Long value) {
            addCriterion("userDistributorsId1 <=", value, "userdistributorsid1");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid1In(List<Long> values) {
            addCriterion("userDistributorsId1 in", values, "userdistributorsid1");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid1NotIn(List<Long> values) {
            addCriterion("userDistributorsId1 not in", values, "userdistributorsid1");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid1Between(Long value1, Long value2) {
            addCriterion("userDistributorsId1 between", value1, value2, "userdistributorsid1");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid1NotBetween(Long value1, Long value2) {
            addCriterion("userDistributorsId1 not between", value1, value2, "userdistributorsid1");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid2IsNull() {
            addCriterion("userDistributorsId2 is null");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid2IsNotNull() {
            addCriterion("userDistributorsId2 is not null");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid2EqualTo(Long value) {
            addCriterion("userDistributorsId2 =", value, "userdistributorsid2");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid2NotEqualTo(Long value) {
            addCriterion("userDistributorsId2 <>", value, "userdistributorsid2");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid2GreaterThan(Long value) {
            addCriterion("userDistributorsId2 >", value, "userdistributorsid2");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid2GreaterThanOrEqualTo(Long value) {
            addCriterion("userDistributorsId2 >=", value, "userdistributorsid2");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid2LessThan(Long value) {
            addCriterion("userDistributorsId2 <", value, "userdistributorsid2");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid2LessThanOrEqualTo(Long value) {
            addCriterion("userDistributorsId2 <=", value, "userdistributorsid2");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid2In(List<Long> values) {
            addCriterion("userDistributorsId2 in", values, "userdistributorsid2");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid2NotIn(List<Long> values) {
            addCriterion("userDistributorsId2 not in", values, "userdistributorsid2");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid2Between(Long value1, Long value2) {
            addCriterion("userDistributorsId2 between", value1, value2, "userdistributorsid2");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid2NotBetween(Long value1, Long value2) {
            addCriterion("userDistributorsId2 not between", value1, value2, "userdistributorsid2");
            return (Criteria) this;
        }

        public Criteria andHospitalinfophoneIsNull() {
            addCriterion("hospitalinfoPhone is null");
            return (Criteria) this;
        }

        public Criteria andHospitalinfophoneIsNotNull() {
            addCriterion("hospitalinfoPhone is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalinfophoneEqualTo(String value) {
            addCriterion("hospitalinfoPhone =", value, "hospitalinfophone");
            return (Criteria) this;
        }

        public Criteria andHospitalinfophoneNotEqualTo(String value) {
            addCriterion("hospitalinfoPhone <>", value, "hospitalinfophone");
            return (Criteria) this;
        }

        public Criteria andHospitalinfophoneGreaterThan(String value) {
            addCriterion("hospitalinfoPhone >", value, "hospitalinfophone");
            return (Criteria) this;
        }

        public Criteria andHospitalinfophoneGreaterThanOrEqualTo(String value) {
            addCriterion("hospitalinfoPhone >=", value, "hospitalinfophone");
            return (Criteria) this;
        }

        public Criteria andHospitalinfophoneLessThan(String value) {
            addCriterion("hospitalinfoPhone <", value, "hospitalinfophone");
            return (Criteria) this;
        }

        public Criteria andHospitalinfophoneLessThanOrEqualTo(String value) {
            addCriterion("hospitalinfoPhone <=", value, "hospitalinfophone");
            return (Criteria) this;
        }

        public Criteria andHospitalinfophoneLike(String value) {
            addCriterion("hospitalinfoPhone like", value, "hospitalinfophone");
            return (Criteria) this;
        }

        public Criteria andHospitalinfophoneNotLike(String value) {
            addCriterion("hospitalinfoPhone not like", value, "hospitalinfophone");
            return (Criteria) this;
        }

        public Criteria andHospitalinfophoneIn(List<String> values) {
            addCriterion("hospitalinfoPhone in", values, "hospitalinfophone");
            return (Criteria) this;
        }

        public Criteria andHospitalinfophoneNotIn(List<String> values) {
            addCriterion("hospitalinfoPhone not in", values, "hospitalinfophone");
            return (Criteria) this;
        }

        public Criteria andHospitalinfophoneBetween(String value1, String value2) {
            addCriterion("hospitalinfoPhone between", value1, value2, "hospitalinfophone");
            return (Criteria) this;
        }

        public Criteria andHospitalinfophoneNotBetween(String value1, String value2) {
            addCriterion("hospitalinfoPhone not between", value1, value2, "hospitalinfophone");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}